package com.shop2cn.wxcomponent.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*授权变更回调
*FreeMaker Template自动生成代码
*/
public class AppCallBackCall extends YmatouBaseCall{
	private static String opurl ="api";
	
	public AppCallBackCall() {
		super(EnvSetup.getSystemUrl("wxcomponent_shop2cn"),opurl,"POST","JSON");
	}
	/**
	 * api/{APPID}/callback?timestamp=1575973810&nonce=155395418&encrypt_type=aes&msg_signature=39e94b7cf31b636a010c0894918d4f0442f741f3
	 * @param oprul2 需要拼接
	 */
	public AppCallBackCall(String oprul2) {
		super(EnvSetup.getSystemUrl("wxcomponent_shop2cn"),oprul2,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
}